ga.core.individual
Interface IClusterableIndividual<T extends IClusterableIndividual<T>>

Type Parameters:
T - The generic type of individuals.
All Superinterfaces:
java.lang.Cloneable, org.apache.commons.math.stat.clustering.Clusterable<T>, IFitness, IIndividual<T>
All Known Implementing Classes:
FurnLayoutIndividual

public interface IClusterableIndividual<T extends IClusterableIndividual<T>>
extends IIndividual<T>, org.apache.commons.math.stat.clustering.Clusterable<T>

Interface for individuals that is clusterable.

Since:
11.08.2012
Author:
Stephan Dreyer

Field Summary
 
Fields inherited from interface ga.core.individual.IFitness
UNEVALUATED
 
Method Summary
 double distanceFrom(T ind2)
          Calculates the distance from this individual to the second individual, normalized to [0;1].
 
Methods inherited from interface ga.core.individual.IIndividual
clone, getContext, getId, initRandomly, isEvaluated, setContext
 
Methods inherited from interface ga.core.individual.IFitness
getFitness, setFitness
 
Methods inherited from interface org.apache.commons.math.stat.clustering.Clusterable
centroidOf
 

Method Detail

distanceFrom

double distanceFrom(T ind2)
Calculates the distance from this individual to the second individual, normalized to [0;1].

Specified by:
distanceFrom in interface org.apache.commons.math.stat.clustering.Clusterable<T extends IClusterableIndividual<T>>
Parameters:
ind2 - The second individual
Returns:
Normalized distance of this individual from the second individual.
Since:
18.02.2012